package org.tinygroup.earthworm3.test;

import org.tinygroup.earthworm3.EarthWorm3;
import org.tinygroup.logger.LogLevel;
import org.tinygroup.logger.Logger;
import org.tinygroup.logger.LoggerFactory;

public class Simple3 {
	private static Logger LOGGER = LoggerFactory.getLogger(Simple3.class);
	public static void main(String[] args) {
		LOGGER.logMessage(LogLevel.INFO, "追踪之前");
		EarthWorm3.startTrace("", "default");
		LOGGER.logMessage(LogLevel.INFO, "刚刚开始追做");
		EarthWorm3.startRpc("hello", "");
		LOGGER.logMessage(LogLevel.INFO, "刚刚开起了远程");
		EarthWorm3.rpcClientSend();
		LOGGER.logMessage(LogLevel.INFO, "刚才发送了消息");
		EarthWorm3.rpcClientRecv();
		LOGGER.logMessage(LogLevel.INFO, "刚才收到了消息");
		EarthWorm3.startLocal("hhhh", "");
		LOGGER.logMessage(LogLevel.INFO, "刚才开起了本地");
		EarthWorm3.endLocal();
		LOGGER.logMessage(LogLevel.INFO, "刚才结束了本地");
		EarthWorm3.startLocal("hhhh1", "");
		LOGGER.logMessage(LogLevel.INFO, "刚才you开起了本地");
		EarthWorm3.endLocal();
		LOGGER.logMessage(LogLevel.INFO, "刚才you结束了本地");
		EarthWorm3.endTrace();
		LOGGER.logMessage(LogLevel.INFO, "刚才结束了追踪");
	}
}
